<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-3.6.3.min.js"></script>
		<script>
			$(function(){
				$("a").click(function(){
					window.alert("你点击了链接");
					return false;
				});
			});
		</script>
	</head>
	<body>
		<a href="https://www.baidu.com">百度</a>
	</body>
</html>